setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../findNSourceUtils.R')

test.rdoc_download_csv.golden <- function(H2Oserver) {
	
irisPath = system.file("extdata", "iris_wheader.csv", package = "h2o")
iris.hex = h2o.importFile(H2Oserver, path = irisPath)
myFile = paste(getwd(), "my_iris_file.csv", sep = .Platform$file.sep)
h2o.downloadCSV(iris.hex, myFile)
file.info(myFile)    
file.remove(myFile)

testEnd()
}

doTest("R Doc Download CSV", test.rdoc_download_csv.golden)

